package com.varbal.icegame.test;


import com.varbal.icegame.bean.Animal;
import com.varbal.icegame.bean.Cat;

import java.util.Scanner;


public class HelloWorld {
	static Scanner sc = new Scanner(System.in);
	
	void sayHello() {
		System.out.println("hello world!");
	}

	public static void main(String[] args) {
		new HelloWorld().sayHello();
		System.out.print("请你丢一种食物：");
		String food = sc.nextLine();
		Animal a = new Cat();
		try {
			a.run();
			a.say();
		} catch (Exception e) {
		}
		a.seeFood(food);
		System.out.println("你要摸一摸它吗？");
		String orTach = sc.nextLine();
		System.out.println("不给摸！！！");
	}
}
